import { existplayer,Read_player,Write_player,Add_player,__PATH,get_player_img,Write_json,Read_json
    ,alluser,Go,getPlayerAction,isNotNull,getGuojiaIndex,getGuojia,hasPassedOneDay } from "../game/sanguo.js";
import data from '../../model/sanguoData.js'
import fs from 'fs';
export class tu extends plugin {
    constructor() {
      super({
        /** 功能名称 */
        name: '三国|兵种进化模块',
        /** 功能描述 */
        dsc: '兵种进化模块',
        event: 'message',
        /** 优先级，数字越小等级越高 */
        priority: 600,
        rule: [
          {
            reg: /^(#|\/)兵种进化路线.*$/,
            fnc: 'jian',
          },
        ]
      });
    }
    async jian(e){
        const usr_qq = e.user_id;
        let player = await Read_player(1,usr_qq)
        let qian;
        if (e.msg.includes("/")) {
        qian = e.msg.replace("/兵种进化路线", '');
        } else if (e.msg.includes("#")) {
        qian = e.msg.replace("#兵种进化路线", '');
        }
        qian = qian.trim();
        let x = await data.bingzhongluxian_list
        for (let i = 0; i < x.length; i++) {        
        }
    }
}